import request from '@/utils/request'

export function getPersonalAward(params) {
    return request.post('/personal/award/get/personal/award', params);
}


export function deletePersonalAward(id) {
    return request.delete(`/personal/award/deleteById/${id}`);
}
/**
 * 根据id来查询个人获奖信息
 */
export function getPersonalAwardById(id) {
    return request.get(`/personal/award/getPersonalById/${id}`);
}

/**
 * 更新个人获奖
 */
export function updatePersonalAward(personalAwardData) {
    return request.put('/personal/award/update', personalAwardData);
}

//新增个人获奖
export function savePersonalAward(paperData) {
    return request.post('/personal/award/save', paperData);
}

/**
 * excel批量导出
 */
export function exportPersonalAward(params) {
    return request.post('/personal/award/export', params, {
        responseType: 'blob'
    });
}

//根据多个id批量查询数据
export function getPersonalAwardsByIds(ids) {
    return request.post('/personal/award/getPersonalByIds', ids);
}
